"use strict";

const BaseController = require("./base");

class CategoryController extends BaseController {
	async categories()
	{
		const {ctx} = this;
		const categories = await ctx.model.Category.find()
		this.success(categories);
	}
}

module.exports = CategoryController;
